package com.zhang;

import com.zhang.domain.User;
import com.zhang.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class DemoTest1 {

    @Autowired
    private UserMapper userMapper;


    //测试删除
    @Test
    public void test1() {
        userMapper.deleteById(1);
    }

    //测试查询
    @Test
    public void test2() {
        User user = userMapper.selectById(1);
        System.out.println(user);
    }


}
